package xyx.ssm.service;

import org.springframework.stereotype.Service;
import xyx.ssm.dao.UserDao;
import xyx.ssm.model.User;

import javax.annotation.Resource;
import java.util.List;

@Service("UserService")
public class UserServiceImpl implements UserService{
    @Resource
    UserDao userDao;

    @Override
    public List<User> selectUser() {
        return userDao.selectUser();
    }

    public User selectUserById(int id){
        return userDao.selectUserById(id);
    }
}
